package com.huiHang.auth.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;

import java.io.Serial;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.v3.oas.annotations.media.Schema;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 用户隐私表
 * </p>
 *
 * @author author
 * @since 2024-12-29
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("user_private_info")
@Schema(name = "UserPrivateInfo对象", description="用户隐私表")
public class UserPrivateInfo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(name =  "用户ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @Schema(name =  "真实姓名")
    private String realName;

    @Schema(name =  "身份证号码")
    private String idCardNumber;

    @Schema(name =  "手机号码")
    private String phone;

    @Schema(name =  "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @Schema(name =  "修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    @Schema(name =  "1:正常;0:锁定;-1:删除")
    private Integer isDelete;


}
